package rs.frenjoynet.core.core;


import rs.frenjoynet.core.core.entity.db.Information;
import rs.frenjoynet.core.core.entity.db.User;
import rs.frenjoynet.core.core.ActiveUserSession;

import javax.ejb.Local;


/**
 * Created by IntelliJ IDEA.
 * User: ppopovic
 * Date: 16.10.2009.
 * Time: 12.46.00
 * To change this template use File | Settings | File Templates.
 */
@Local
public interface CoreSecurityFacade extends BaseFacade
{
	ActiveUserSession autentificate(String login, String password, String webSessionUid,
									String userAgent, String ip);

	ActiveUserSession createAccount(String login, String password, String webSessionUid,
									String userAgent, String ip, Information information);
	void logout();

	ActiveUserSession getActiveUserSession();

	User getUser(String username);

	Information getInformation(String username);

}
